import 'package:flutter/material.dart';
import 'package:flutterdemo/0demo/notifier/value_notifier/value_notifier_test_page.dart';
import 'package:flutterdemo/0demo/route/fade_route.dart';

// refer: https://www.mdnice.com/writing/f53f80801bb24585a1bfdba4e62d0fe3

class NotifierTestPages extends StatefulWidget {
  const NotifierTestPages({Key key}) : super(key: key);

  @override
  State<NotifierTestPages> createState() => _NotifierTestPagesState();
}

class _NotifierTestPagesState extends State<NotifierTestPages> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("notifiers test"),
      ),
      body: Container(
        alignment: Alignment.center,
        child: Column(
          mainAxisSize: MainAxisSize.min,
          children: [
            ElevatedButton(
                onPressed: () {
                  Navigator.push(context, FadeRoute(page: ValueNotifierTestPage()));
                },
                child: Text("value notifier")),
          ],
        ),
      ),
    );
  }
}
